package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
* <p>
* 营销表
* </p>
*
* @author wsl
* @since 2022-04-05
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("sale_chance")
@ApiModel(value = "SaleChance对象", description = "营销表")
public class SaleChance implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id主键")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("机会来源（广告，推广......）")
    private String chanceSource;

    @ApiModelProperty("客户名称")
    private String customerName;

    @ApiModelProperty("成功几率")
    private Integer cgjl;

    @ApiModelProperty("概要（营销机会的描述）")
    private String overview;

    @ApiModelProperty("联系人")
    private String linkMan;

    @ApiModelProperty("手机号")
    private String linkPhone;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("创建人（这条记录是谁创建的）")
    private String createMan;

    @ApiModelProperty("分配人（分配给销售人员）")
    private String assignMan;

    @ApiModelProperty("分配时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date assignTime;

    @ApiModelProperty("分配状态（已分配，未分配）")
    private Integer state;

    @ApiModelProperty("开发结果（开发成功、开发失败、正在开发中）")
    private Integer devResult;

    @ApiModelProperty("有效状态")
    private Integer isValid;

    @ApiModelProperty("创建时间（这条数据是什么时候创建的，方便观看数据的原始时间）")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;

    @ApiModelProperty("更新时间（什么时候被修改过）")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateDate;

    @ApiModelProperty("逻辑删除")
    private Integer deleted;
}
